new list-array with values c#

109

new list/array with values c# -

var myList = new List<string> { "foo", "bar" };
//Alternatively
var myArray = new[]{ "foo", "bar" };

Comments

Submit
0 Comments